package com.jay.media.music.ui.manager

import android.media.MediaMetadata
import android.media.browse.MediaBrowser
import android.media.session.PlaybackState
import android.os.Bundle

/**
 * @author xuzhou4
 * @date 2022/3/10
 */
interface MusicListener {

    fun onChildrenLoaded(
        parentId: String,
        children: MutableList<MediaBrowser.MediaItem>
    )

    fun onMetadataChanged(metadata: MediaMetadata?)

    fun onPlaybackStateChanged(state: PlaybackState?)

    fun onSessionEvent(event: String, extras: Bundle?)
}